package goft

import (
	"github.com/gin-gonic/gin"
)

type Responder interface {
	ResponderTo() gin.HandlerFunc
}

func Conver(handler interface{}) {

}

type StringResponder func(*gin.Context) string

func (this StringResponder) RespondTo() gin.HandlerFunc {
	return func(c *gin.Context) {
		c.String(200, this(c))
	}
}
